package com.gzdict.common.utils

import com.tencent.mmkv.MMKV


val userKV: MMKV = MMKV.mmkvWithID("UserValue")

object SPKey {
    const val KEY_USERNAME = "username"
    const val KEY_SHOP = "choice_shop"
    const val KEY_ACCOUNT = "account"
    const val KEY_UID = "userId"
    const val KEY_PSW = "psw"
    const val KEY_TOKEN = "token"
    const val KEY_INFO = "info"
}

fun getStringSP(key:String): String? {
   return userKV.getString(key,null)
}

fun putStringSp(key:String,value:String){
    userKV.putString(key,value)
}
